// @ts-ignore
/* eslint-disable */
import request from "../utils/request.ts";

/** addFriend POST /api/friend/add */
export async function addFriendUsingPost(
  body: API.FriendAdd,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/friend/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listFriend GET /api/friend/list */
export async function listFriendUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listFriendUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListFriend_>("/api/friend/list", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
